﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage_New.master"
    CodeBehind="ComparisonByProSettlement.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.Comparison.ComparisonByProSettlement"
    Title="处方单数据" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript">
        
        function dis(id) {
            document.getElementById("chart1").style.display = "none";
            document.getElementById("chart2").style.display = "none";
            document.getElementById("chart3").style.display = "none";
            document.getElementById("chart4").style.display = "none";
            document.getElementById("chart5").style.display = "none";
//            document.getElementById("chart6").style.display = "none";
//            document.getElementById("chart7").style.display = "none";
            //document.getElementById("PM").style.display = "none";
            document.getElementById(id).style.display = "block"
//            if (id == "chart6" || id == "chart7")
//            { document.getElementById("PM").style.display = "block"; }

        }
        function insertHosInfo(info) {
            var varhosInfo = info.split('|');
            document.getElementById("ctl00_ContentPlaceHolder1_hidHos").value = varhosInfo[0];
            document.getElementById("ctl00_ContentPlaceHolder1_txtHosName").value = varhosInfo[1];
        }
        function insertAreaInfo(info) {
            var varhosInfo = info.split('|');
            document.getElementById("ctl00_ContentPlaceHolder1_hidArea").value = varhosInfo[0];
            document.getElementById("ctl00_ContentPlaceHolder1_txtAeraName").value = varhosInfo[1];
        }
        function insertProInfo(area) {
            var varhosInfo = area.split('|');
            document.getElementById("ctl00_ContentPlaceHolder1_HidProId").value = varhosInfo[0];
            document.getElementById("ctl00_ContentPlaceHolder1_txtProName").value = varhosInfo[1];
        }
    </script>

   <div id="tabnav">
        <ul>
            <li >
                <a href="ComparisonByHospitalSettlement.aspx" >医院对比</a>
            </li>
            <li> <a href="ComparisonByAreaSettlement.aspx" >地区对比</a></li>
             <li class="active"> <a href="javascript:void(0)" >药品对比</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                            <asp:Label ID="labArea" runat="server" Text="选择药品："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProName" MaxLength="25" runat="server" Width="262px" ></asp:TextBox>
                                      <input type="button" id="Button3" runat="server" value="选择药品" class="btn" style="margin-right: 5px;"
                                      onclick="javascript:showPopWin('选择药品','/Common/FindAllProductName.aspx', 900,450, null,true,true)" />
                         <input id="HidProId" type="hidden" name="HidAreaId" runat="server" /></td>
                            <td align="right">
                            <asp:Label ID="labPlanTime" runat="server" Text="统计时间："></asp:Label>
                            &nbsp;</td>
                            <td align="left">
                            <asp:TextBox ID="txtStratTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"
                                Width="80px"></asp:TextBox>—<asp:TextBox 
                                ID="txtEndTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"
                                    Width="80px"></asp:TextBox>
                            </td>
                            
                        </tr>
                        </table>
                </td>
                <td width="100px">
                    <asp:Button ID="Button2" runat="server" Text="查询" CssClass="searchbtn"
                        SkinID="search" ToolTip="点击查询符合条件的数据" onclick="btnQuery_Click" 
                        TabIndex="99" />
                </td>
            </tr>
        </table>
    </div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <a href="javascript:dis('chart3')">补贴金额</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <a href="javascript:dis('chart1')">使用总金额</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <a href="javascript:dis('chart2')">使用总数量</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <a href="javascript:dis('chart4')">使用率(金额)</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <a href="javascript:dis('chart5')">使用率(数量)</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <div id="tabcontent2" class="importlist">
        &nbsp;
        <asp:Label ID="Label2" runat="server" Text="地区："></asp:Label>
        <asp:TextBox ID="txtAeraName" runat="server" ></asp:TextBox>
        &nbsp;
        <input type="button" id="btnArea" runat="server" value="选择地区" class="btn" style="margin-right: 5px;"
                            onclick="javascript:showPopWin('选择地区','/Common/FindAllAreaCity.aspx', 300,440, null,true,true)" /><asp:HiddenField ID="hidArea" runat="server" />
        &nbsp;<asp:Label ID="Label1" runat="server" Text="医院："></asp:Label>
        <asp:TextBox ID="txtHosName"
            runat="server"></asp:TextBox>
       <input type="button" ID="btnHos" runat="server" class="btn" value="选择医院" style="margin-right: 5px;"
                            onclick="javascript:showPopWin('选择医院','/Common/FindHospital.aspx', 300,440, null,true,true)"/><hz:HzButton ID="btnQuery" runat="server" CssClass="btn" 
            onclick="btnQuery_Click" Text="查询" />
        &nbsp;<asp:HiddenField ID="hidHos" runat="server" />
        &nbsp;&nbsp;&nbsp;<asp:Label ID="lblnull" runat="server" Text="无对比数据" Visible="false"></asp:Label>
        <div id="chart1" style="display:none">
            <asp:Chart ID="hospitalAmountSubsidy" runat="server" BackColor="#D3DFF0" BackGradientStyle="TopBottom"
                BorderWidth="2" BorderColor="26, 59, 105" Width="800px" Height="378px">
                <Legends>
                    <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                        Docking="Top" Alignment="Far">
                    </asp:Legend>
                </Legends>
                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                <ChartAreas>
                    <asp:ChartArea Name="hospitalAmountSubsidy" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent"
                        BackColor="64, 165, 191, 228" ShadowColor="Transparent">
                        <Position Y="3" Height="85" Width="92" X="2" Auto="true"></Position>
                        <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
        </div>
        <div id="chart2" style="display: none">
            <asp:Chart ID="hospitalAmountSubsidy0" runat="server" BackColor="#D3DFF0" BorderDashStyle="Solid"
                BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105" Width="800"
                Height="370">
                <Legends>
                    <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                        Docking="Top" Alignment="Far">
                    </asp:Legend>
                </Legends>
                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                <ChartAreas>
                    <asp:ChartArea Name="hospitalAmountSubsidy0" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                        BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent"
                        BackGradientStyle="TopBottom">
                        <%--<Position Y="3" Height="92" Width="92" X="2"></Position>--%>
                        <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
        </div>
        <div id="chart3" style="display:none">
            <asp:Chart ID="hospitalAmountSubsidy1" runat="server" BackColor="#D3DFF0" BorderDashStyle="Solid"
                BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105" Width="800"
                Height="370" Enabled='false'>
                <Legends>
                    <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                        Docking="Top" Alignment="Far">
                    </asp:Legend>
                </Legends>
                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                <ChartAreas>
                    <asp:ChartArea Name="hospitalAmountSubsidy1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                        BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent"
                        BackGradientStyle="TopBottom">
                        <Area3DStyle Rotation="10" Inclination="15" WallWidth="0" />
                        <Position Y="3" Height="92" Width="92" X="2" Auto="true"></Position>
                        <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
        </div>
        <div id="chart4" style="display: none">
            <asp:Chart ID="hospitalAmountSubsidy2" runat="server" BackColor="#D3DFF0" BorderDashStyle="Solid"
                BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105" Width="800"
                Height="370">
                <Legends>
                    <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                        Docking="Top" Alignment="Far">
                    </asp:Legend>
                </Legends>
                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                <ChartAreas>
                    <asp:ChartArea Name="hospitalAmountSubsidy2" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                        BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent"
                        BackGradientStyle="TopBottom">
                        <Area3DStyle Rotation="10" Inclination="15" WallWidth="0" />
                        <Position Y="3" Height="92" Width="92" X="2" Auto="true"></Position>
                        <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
        </div>
        <div id="chart5" style="display: none">
            <asp:Chart ID="hospitalAmountSubsidy3" runat="server" BackColor="#D3DFF0" BorderDashStyle="Solid"
                BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105" Width="800"
                Height="370">
                <Legends>
                    <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                        Docking="Top" Alignment="Far">
                    </asp:Legend>
                </Legends>
                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                <ChartAreas>
                    <asp:ChartArea Name="hospitalAmountSubsidy3" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                        BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent"
                        BackGradientStyle="TopBottom">
                        <Area3DStyle Rotation="10" Inclination="15" WallWidth="0" />
                        <Position Y="3" Height="92" Width="92" X="2" Auto="true"></Position>
                        <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
        </div>
    </div>
    <div class="listip">
        <ul>
            <li>说明:<span> 此图为药品对比图,查看选择的药品在选择的时间段内的数据进行比较.</span></li>
        </ul>
    </div>
   
</asp:Content>
